<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/views/global/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath %>">
<%@include file="/views/global/ShopInclude.jsp" %>
<link href="static/css/module/cart.css" rel="stylesheet" type="text/css">
<title>LOGISTICS</title>
</head>
<body class="submitBg">
<!-- 顶部导航条  -->
<%@include file="/views/global/header.jsp" %>
<!-- 顶部导航条结束  -->

<c:set var="pageName" value="logistics"></c:set>
<%@include file="/views/global/SellerHeader.jsp" %>

<div class="form-container center font fontColorGray">  <!-- 表单填写部分 -->
    <form id="submitForm" class="submit-form" action="" method="post">
      <div class="cartFormTitle hrTableBorder">
      	SOLD OUT RECORDS
      </div>
      <div class="cartTable font">
      	<div class="form-group row hrThin table-head">
	    	<div class="col-xs-1">
	    	</div>
	    	<div class="col-xs-5">
	    		Items
	    	</div>
	    	<div class="col-xs-1">
	    		Package
	    	</div>
	    	<div class="col-xs-1">
	    		Price
	    	</div>
	    	<div class="col-xs-1">
	    		Quantity
	    	</div>
	    	<div class="col-xs-1">
	    		Total
	    	</div>
	    	<div class="col-xs-2">
	    		Control
	    	</div>
	    </div>
	    <c:if test="${empty entryList }">
	    	<div class="form-group row hrThin">
	    		<div class="alert alert-danger">YOUR CART IS EMPTY!</div>
	    	</div>
	    </c:if>
	    <c:forEach var="entry" items="${entryList }">
	    <div class="form-group hrThin">
	    	<c:forEach var="item" items="${entry.orderItems }">
	    		<div class="row">
	    			<div class="col-xs-1">
			    		<span class="cartItemImg">
			    			<a href="item/detail?id=${item.itemId }" target="_blank"><img width="100" height="100" src="${item.mainUrl }"/></a>
			    		</span>
			    	</div>
			    	<div class="col-xs-5" style="text-align:left;">
			    		<div class="item-info">${item.itemTitle }</div>
			    	</div>
			    	<div class="col-xs-1">
			    		${item.propKey }
			    	</div>
			    	<div class="col-xs-1">
			    		<span class="price">${item.executePrice}</span>
			    	</div>
			    	<div class="col-xs-1">
			    		${item.amount}
			    	</div>
			    	<div class="col-xs-1">
			    		${item.totalPrice}
			    	</div>
			    	<div class="col-xs-2">
			    		<input type="button" class="btn btn-href" value="Delete" onclick="deleteCart(this, '${item.id}')"/>
			    	</div>
	    		</div>
	    	</c:forEach>
	    </div>
	    </c:forEach>
      </div>
    </form>
  </div>

<%@include file="/views/global/CopyrightEnglish.jsp" %>
<!-- 页尾 -->
<%@include file="/views/global/AdminScripts.jsp" %>
<%@include file="/views/global/footer.jsp" %>
<!-- 页尾结束 -->
  
</body>

<script type="text/javascript" src="static/javascript/module/CartCommon.js"></script>
<script type="text/javascript" src="static/javascript/page/cart.js"></script>
</html>
